package com.example.demo.controller;

import cn.hutool.http.HttpUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 孙宏宇
 * @date 2021/4/8 15:33
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "<h1>Hello Jenkins !!!</h1>";
    }

    @GetMapping("/remote1")
    public String remote1() {
        String result1= HttpUtil.get("https://www.2345.com/");
        return result1;
    }

    @GetMapping("/remote2")
    public String remote2() {
        String result1= HttpUtil.get("121.40.31.9");
        return result1;
    }


}
